tools/xenstat: handle network interface name in uppercase.
authorZhigang Wang <zhigang.x.wang@oracle.com>
Wed, 20 Apr 2016 14:16:35 +0000 (10:16 -0400)
committerWei Liu <wei.liu2@citrix.com>
Wed, 20 Apr 2016 18:01:33 +0000 (19:01 +0100)
commit83a5839960db70f3552417379ad2677a6b473b20
treecfe136860585adaaf343b251ba3029b95a38ef20
parent1e9f929b7875a0f630f229127127179ed3d5aefa
tools/xenstat: handle network interface name in uppercase.

xentop will segmentation fault in this case:

  # ip link set eth1 down
  # ip link set eth1 name ETH
  # xentop

This patch will let xentop to handle all uppercase network interface name.

Signed-off-by: Zhigang Wang <zhigang.x.wang@oracle.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
tools/xenstat/libxenstat/src/xenstat_linux.c